import request from '@/utils/request'

// dormitories search 教室搜索
export function getClassRoomList(data) {
  return request({
    url: '/classrooms/search',
    method: 'post',
    data
  })
}

// dormitories add 教室新增
export function addClassRoom(data) {
  return request({
    url: '/classrooms/add',
    method: 'post',
    data
  })
}

// dormitories delete 教室删除
export function deleteClassRoom(params) {
  return request({
    url: '/classrooms/delete',
    method: 'post',
    params
  })
}

// dormitories update 教室更新
export function updateClassRoom(data) {
  return request({
    url: '/classrooms/update',
    method: 'post',
    data
  })
}

// classrooms get 获取所有教室
export function getAllClassRoom() {
  return request({
    url: '/classrooms/get',
    method: 'get'
  })
}

// classrooms getDetail 获取教室详情
export function getAllClassRoomDetail() {
  return request({
    url: '/classrooms/getDetail',
    method: 'get'
  })
}

